#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2018/8/26 01:45
# @Author  : khz_mac
# @Site    : 
# @File    : __init__.py.py
# @Software: ce9nt


import os
from pwn import *


def main():
    conn = remote('ftp.ubuntu.com', 21)
    print conn.recvline()
    '220 ...'
    conn.send('USER anonymous\r\n')
    print conn.recvuntil(' ', drop=True)
    '331'
    print conn.recvline()
    'Please specify the password.\r\n'
    conn.close()
    pass


if __name__ == "__main__":
    print("------------------    Enter __main__    ------------------")

    print(u"[Current work directory is : ]\t" + os.getcwd())
    print(u"[Current process ID is : ]\t" + str(os.getpid()))
    print("\n")
    main()

    print("------------------    Leave __main__    ------------------")